<template>
  <div>
    <van-nav-bar fixed placeholder title="我的点赞" />
    <article-item v-for="item in list" :item="item" :key="item.id" />
  </div>
</template>

<script>
console.log("我是点赞页面, 我被加载回来了  ----->  ");
import ArticleItem from "@/components/ArticleItem.vue";
import { getLikeAndCollectAPI } from "@/api/article";

export default {
  components: { ArticleItem },
  data() {
    return {
      list: [],
    };
  },
  async created() {
    const res = await getLikeAndCollectAPI(1);
    this.list = res.data.rows;
  },
};
</script>

<style></style>
